package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class CollectionIncrementalLossCalculationDTO {

    @ApiModelProperty("藏品ID")
    private Long collectionId;

    @ApiModelProperty("藏品数量")
    @NotNull(message = "转增数量不能为空")
    @Range(min = 1, max = 20, message = "转增数量范围为1-20个")
    private Integer collectionNum = 1;
}
